Added validations for categories.