Added first bit of validation (currently only for first page. rest won't
be hard).