Add some functions to user.class.php