When it askes for user enter root, and then when it asks for password enter the password. If you don't know password for root it's a really serious problem. You can also log in as root via command...
// Check if $_SESSION['username'] is not blank <?php Session_start(); if ($_SESSION['username'] == "") { header('location: login.php'); } else { echo " User logged in "; } ?>