HTML5 validation

Added HTML5 form validation and tweaked js validation