Validate a user login.
User user = findUser(getUsername(), getPassword()); if (user != null) { setUser(user); } if (hasErrors()) { return INPUT; } return SUCCESS;