Added login action to UserController.