fixed some issues with validation. allowed you to define parent pages.

Signed-off-by: Tom Green <kingofcuddles@gmail.com>