modified the User class