title: Jquery Validate. Validate on "keyup" and hide form when password is correct
body: <p>I want to implement an uncommon functionality and I thought jquery validate plugin would be the best way to do it (if you suggest and answer without the plugin, it will be welcomed as well). I want to hide the form as soon as the user enters the correct word on the input field.
  I tried this:</p>
  
  <pre><code>  $("#beta_form").validate({
      onsubmit: false,
      onkeyup: true,
      rules: {
          beta_password: "1789"
      },
      success: function(){
          $("#beta_form").addClass("hidden");
      }
    });
  </code></pre>
  
  <p>So, as soon as the user enters "1789" (without having to hit submit), the form is supposed to hide.</p>
  
  <p>I get this error:</p>
  
  <pre><code> TypeError: settings[eventType].call is not a function
  </code></pre>