//Check that the user is not already logged in
AuthSession session = sessionProviderProvider.get().get();
if (session != null) {
throw new AlreadyAuthenticatedException();
}
//Doublecheck that no users already have the given email address
AuthUser user = userServices.getUserFromEmailAddress(emailAddress);