Here is the HTML

(check edits)

It might be messy, I'm really really new to making a website (I use neocities.org )
I used an HTML Source, but made it a bit for myself. Haven't yet figured out how to remove the white around the boxes, but will figure out later.

But wanted to know how I make this form, have a correct 'answer' that will take me to a new site

site url: <https://labavakara.neocities.org/main.html>

**EDITS:**

```
<!DOCTYPE html>

<html>

<head>

<style>
div {
    height: 200px;
    width: 400px;

    position: fixed;
    top: 50%;
    left: 55%;
    margin-top: -100px;
    margin-left: -200px;
}
body {
 background-image: url("https://proxy.duckduckgo.com/iu/?u=http%3A%2F%2Fgetwallpapers.com%2Fwallpaper%2Ffull%2F4%2Fc%2Fc%2F36974.jpg&f=1&nofb=1");
 background-color: #cccccc;
}
function {
  color: red;
}

</style>

<body>

  <script>
    var incorrectCount = 0;
    var correctPassword = "randompassword"
    function checkPassword(){
        var enteredPassword  = document.getElementById("txtpassword").value;
        if(enteredPassword != correctPassword)
            incorrectCount++
        else{
            incorrectCount = 0
            document.getElementById("userMessage").innerHTML = "Correct Password !!"
            window.location.href = "http://www.w3schools.com";
        }

        if(incorrectCount == 3){
            document.getElementById("userMessage").innerHTML = "Incorrect password entered 3 or more times"
            document.getElementById("userMessage").style.visibility = "visible";
        }
    }
  </script>

  <div>
   <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
     <title>Login</title>

<form>
        <p><input style="background-color:red;color:black;border:1px solid #ff0000" type="text" id="randompassword" name="login" value="" placeholder="Username"></p>
        <p><input style="background-color:red;color:black;border:1px solid #ff0000" type="password" id="something" name="password" value="" placeholder="********"></p>
           <a class="submit"><input type="submit" id="loginbutton" onclick="checkPassword()" name="commit" value="Login"><br>
             <label id="userMessage" style="visibility:hidden;"></label>

</a>

  </form>

    </div>

</body>

</html>

```