validation for category model