Update UserController.php

add login function