Fixes nesting level validation during category creation