fixed bug to allow Category creation and editing (HW 5.2)