added uniqueness validation to category model and create appropriate test