fixed validate problem in index.php