added functionality for html5 input elements, especially dates, fixed bug with undeclared input type (handles as text)