My java-script works and all but the only problem is when the first and last name is correct it automatically ignores all the other form element and submits the form. But if the name elements are incorrect it validates the whole form. How do I get it to continue validating if first and last name is correct?
HTML:
Java: