added check into node submit to handle creation of content page content type