I\'ve got the following HTML5 form: http://jsfiddle.net/nfgfP/
It's very simple to control custom messages with the help of the HTML5 oninvalid event
HTML5
oninvalid
Here is the code:
User ID