Cleaned AuthenticateUser to use UserRepository