code: function validateForm() {
  
              var isValid = isEmpty(errors);
  
              formData = {};
  
              $.each(
                  node.find('input:not([type="submit"]), select, textarea').not(':disabled'),
                  function(index, input) {
  
                      input = $(input);
  
                      var value = _getInputValue(input[0]),
                          inputName = input.attr('name');
  
                      if (inputName) {
                          if (/\[]$/.test(inputName)) {
                              inputName = inputName.replace(/\[]$/, '');
                              if (!(formData[inputName] instanceof Array)) {
                                  formData[inputName] = [];
                              }
                              formData[inputName].push(value)
                          } else {
                              formData[inputName] = value;
                          }
                      }
  
                      if (!!input.attr(_data.validation) || !!input.attr(_data.regex)) {
                          if (!validateInput(input[0], value)) {
                              isValid = false;
                          }
                      }
                  }
              );
  
              prepareFormData();
  
              return isValid;
  
          }
docs: For every "data-validation" & "data-pattern" attributes that are not disabled inside the jQuery "node" object
  the "validateInput" function will be called.
  
  @returns {Boolean} true if no error(s) were found (valid form)