fix bug in index.php in login