fixed login_check in index.php