Fix validation for pages