Refactored validations in user model