changed category model to add uniqueness