recreating User class which uses user.php's User class