change references login.php to index.php