added uniqueness validation to category