Added variables and validation in the User class