It appears that you have applied the validations to fire on the on click of the button. This doesn't prevent the form from being submitted, so the form will still submit with the incorrect values. If you change the validations to the onSubmit of the form, then the validation and insert should work correctly.
Basically on line 1363 of the form, you have onClick="<validation code>". You want to copy the <validation code> and put it in the onSubmit of the form on line 729.