Removed testing functions and old commented code from User.php.