Help me fix it unable to proceed to next page and no alert poping up:
<?php
Session_Start();
?>
<!DOCTYPE html>
<html>
<head>
<title>Login</title>
</head>
<link rel="icon" type="image" href="src/icon.png">
<link rel="stylesheet" href="style.css">
<body>
<div class="header">Lazhopee</div>
<form action="" method="post">
<div class="container">
<label for=username>Username: <label> <input type="text" name="username" required autocomplete="off"\><br>
<label for=password>Password: <label> <input type="password" name="password" required autocomplete="off"\><br>
<input type="submit" name="login" value="Login" class="button"><br><br>
<div class="separator">No Account yet ?</div><br>
<a href="signup.php"><input type="button" value="Sign Up" class="button"></a>
</div>
</form>
</body>
</html>
<?php
session_start();
include'connection.php';
if (isset($_POST["submit"])) {
$username = $conn->real_escape_string($_POST["username"]);
$password = $_POST["password"];
$sql = "SELECT id, username, password FROM users WHERE username = ?";
$stmt = $conn->prepare($sql);
$stmt->bind_param("s", $username);
$stmt->execute();
$result = $stmt->get_result();
if ($result->num_rows > 0) {
$row = $result->fetch_assoc();
if (password_verify($password, $row["password"])) {
session_start();
$_SESSION["loggedin"] = true;
$_SESSION["id"] = $row["id"];
$_SESSION["username"] = $row["username"];
$_SESSION['name'] = $row['username'];
?><script>alert("Successful login")</script><?php
?><script>window.location.href='home.php';</script><?php
} else {
?><script>alert("Incorrect Credentials");</script><?php
}
}
$stmt->close();
$conn->close();
}
?>