validation clean up, index.php clean up