Update UserController.php

Declare the global variables