Adding validations to categories