Refactored new category/page creation so both the category and page will be rolled back if validation fails on either one