Was not re-enabling the submit button when validation failed javascript side