changed check.php, head and foot require added