Added proper handling of invalid category creation.  Will eventually need to create default modules based on page type