enhanced form, fixed js bug and enabled html5 validation