Cleaned up the code in the user.php file
Removed the use of the global $USER object