Add validation for categories