added html5 validation for post submit