title: Whenever I click register it says, "your file was not found" and alerts are not showing
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>    &lt;!DOCTYPE html&gt;
      &lt;html&gt;
      
      &lt;head&gt;&lt;/head&gt;
      
      &lt;body&gt;
          &lt;form name="myForm" action="/action_page.php" method="post" onsubmit="return Function()"&gt;E-mail:
              &lt;input type="text" id="email" name="email"&gt;
              &lt;br&gt;Password:
              &lt;input type="password" id="password" name="password"&gt;
              &lt;br&gt;Repeat Password:
              &lt;input type="password" id="password2" name="password2"&gt;
              &lt;br&gt;
              &lt;input type="submit" value="Register"&gt;
          &lt;/form&gt;
          &lt;script type="text/javascript"&gt;
              function Function() {
              
              var email = document.getElementById ("email").value;
              var password = document.getElementById("password").value;
              var password2 = document.getElementById("password2").value;
              
              var emailpattern = /^[^ ]+@[^ ]+\.[a-z]{2,3}$/;
                if (email.match.value(emailpattern)) {
                  alert ("Email is valid!");
                  return true;
                  }
                else {
                  alert ("Not a valid email!");
                  return false;
                  }
                    
              if (email.length &lt; 5) {
              alert("Not a valid email!");
              return false;
              }
              else {
                alert("Email is valid!");
                return true;
                }
                
                if (password.length &lt; 4) {
                alert("Password is too short");
                return false;
                }
                else {
                  alert("Password is valid");
                  return true;
                  }
                
                if (password2.length&lt; 4) {
                  alert ("Password is too short");
                  return false;
                  }
                else {
                    return true;
                    }
                  
                if (password != password2) {
                  alert ("Passwords does not much");
                  return false;
                  }
                else {
                  return true;
                  }
              }
          &lt;/script&gt;
      &lt;/body&gt;
      
      &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>