renamed LoginUser to AuthenticateUser