added uniqueness validation to categories