Surround your $("#formName").submit();
in an if statement that checks the (length of) the values in your required fields, that way the form will only submit if those values are present.
You could go one step up and use separate methods for validation that return a boolean, and only if all validation methods return true do you submit the form.