if (storedPw != null) {
if (storedPw.equals(enteredPw)) {
// store login in session and return success (null)
session.setAttribute(SessionAttrs.USERNAME, username);
return new Success("");
} else {
return new Failure("Wrong password for user " + username + " entered.");
}
} else {
return new Failure("Username does not exist.");