Edit to UserController for mobile login.