Added code for different kinds of html inputs.