using html5 validation on client side