I'm trying to create a simple validation script which checks if text was entered or not in a textbox. I wrote the following code, which unfortunately does not print the alert. 

```
<html>
    <head> 

    <title> Js Page </title>
    <script>
    function validateName()
    {   
        var FirstName=document.forms["myForm"]["firstname"].value;          

        if(FirstName==null || FirstName=="" )           
        {
           alert("Please insert the corect First/Lastname");            
              return false;     
        }   
    }
    </script>    
    </head>
    <body>              
        <form name = "myForm" onsubmit = "return validateName()" method="post">
            First name: <input type="text" name="firstname"><br>            
            <input type="submit" value="Submit">    
        </form>
    </body>    
</html>

```