Updated the user.php class to match the database schema.