adds form input type attributes to each input field