validations for category model