if (users.containsKey(user.getUsername())) throw new DuplicateUsernameException(); users.put(user.getUsername(),user.getPassword());
if (users.get(username) == null) { throw new UnknownUserException(); } else if (!users.get(username).equals(password)) { throw new PasswordMatchException(); } return;