validating page.php and footer.php