add validations to User model.