Closes #564: Using correct HTML5 types + form validation to prevent inco...

...mplete form from being submitted; added HTML5 shim for legacy browsers