Update UserController.php

ADding the use of username for authentication