validate plugin and remote- have to submit twice

validate plugin and remote- have to submit twice

Howdy,

I'm trying to do some simple validation, and use the remote portion of the validation plugin.

If an issue is found with the zip or phone, everything works great- I click submit, get the error message, fix it, and click Submit again and proceed to the next page.

If everything is valid, however, I have to click Submit twice to move on.

Any ideas or suggestions are appreciated; I inherited the codebase, so this is all a bit new and trying to get up to speed as quickly as I can.

Thank you for your time and attention.

Code below:

    <script type="text/javascript">
      $(document).ready(function(){
        //jQuery.validator.messages.required = "";
        $("#personalInfoForm").validate({
          rules: {
            why_join_other: {
            required: "#iWhyJoin6:checked"
              },
            member_zip: {
                required:true,
                remote: "checkMemberZip.cfm"
            },
            member_phone: {
                remote: "checkMemberPhone.cfm"
            }
        },
                           
        errorPlacement: function(error, element) {     
            if(element.attr("name") == "why_join") {
              error.appendTo("#whyJoinError");
            } else if(element.attr("name") == "marital_status") {
              error.appendTo("#maritalError");
            } else {
              error.insertAfter(element);
            }
          },
          errorElement: "div",
          messages: {
            children_number: {
              required: ""
            },
            member_zip: {
                required: "Please enter zip.",
                remote: "Please enter at least 5 numbers for your zip code."
            },
            member_phone: {
                remote: "If you enter a phone number, please enter 10 digits. Examples: 976.253.8349 or 9762538349"
            }
          }
                                   
        });
      })
</script>