Added validations to User model