Fix myriad bugs in page validation.

Fixes for new pages, for "add another page," and new pages that are
sub-pages.