Page setup and validation