Added validation to category creation/update/deletion