Added ability to set the input elements type