title: Submit handler is working but its very slow
body: <p>Hello guys I am submitting my form using submit handler and its working but its very slow. Please help me to make it fast. Thanks in advance
  Following is my javascript code for login form......</p>
  
  <pre><code>       var handleLoginForm = function () {
  
         $('.login-form').validate({
          errorElement: 'label', //default input error message container
          errorClass: 'help-inline', // default input error message class
          focusInvalid: false, // do not focus the last invalid input
          rules: {
              username: {
                  required: true
              },
              password: {
                  required: true
              },
               user_type: {
                  required: true
              },
              remember: {
                  required: false
              }
          },
  
          messages: {
              username: {
                  required: "Username is required."
              },
              password: {
                  required: "Password is required."
              },
                user_type: {
                  required: "User Type is Required."
              }
          },
  
          invalidHandler: function (event, validator) { //display error alert on form submit   
              $('.alert-error', $('.login-form')).show();
          },
  
          highlight: function (element) { // hightlight error inputs
              $(element)
                  .closest('.control-group').addClass('error'); // set error class to the control group
          },
          data: $('#form_modulesadd').serialize(),
  
          success: function (label) {
              label.closest('.control-group').removeClass('error');
              label.remove();
          },
  
          errorPlacement: function (error, element) {
              error.addClass('help-small no-left-padding').insertAfter(element.closest('.input-icon'));
          },
  
             submitHandler: function (form) {
             $( ".login-form input" ).submit();
              window.location.href = "check.php";
  
          }
      });
  </code></pre>
  
  <p>It was fast when i was submitting the form using php but I must have to use javascript to submit this form......</p>