Add type to input elements.