Demonstrating the use of HTML5 Form API for validation.

I would like to suggest using HTML5 Form Validation instead of, or in addition to, any JS validation.  It provides very powerful validation options (including regex) and falls back gracefully on devices without JavaScript.  This pull request demonstrates how it can be implemented pretty easily into the existing codebase.