login($_POST["password"])) { header("Location: index.php"); exit; } else { $loginError = "Wrong password !"; } } ?>

Login: