add validation for category