Edited UserController to add login()