Error trapping on create category