added support for html5 input types