Allow input type to be set on text fields