This is what Im doing configure a custom message when form is submitted.
For some reason it shows the default message. have tried the oninvalid attribute as well.