Added validations to the User model