added html5 form validation