Don't put a submit button on the form. Use a regular button with an onclick action that points to a JavaScript function.
The function will use a variable (declared outside the function) to track the number of times the button had been clicked. If the button has never been clicked before, then it will validate the inputs. If the inputs are good, it will increment that above counter then invoke the submit method of the form.
Clicking a second time on the submit button will do nothing. The form cannot be submitted without valid inputs. ______________________________________________________________________
Perfection in engineering does not happen when there is nothing more to add.
Rather it happens when there is nothing more to take away.