fix the index.php login validation