I\'ve got the following HTML5 form: http://jsfiddle.net/nfgfP/
Here is the code to handle custom error message in HTML5:
This part is important because it hides the error message when the user inputs new data:
oninput="this.setCustomValidity('')"