if (username == null || "".equals(username)) {
respond("500 please provide a username.");
} else if (!username.matches("[\\w-]+")) {
respond("500 Username contains illegal characters.");
} else {
auth = new AuthenticationRequest(username, ident, clientHost);
respond("331 Password required for " + username);
}
}