added type to the input field so it can be controlled from the element as to what kind of datalist should be rendered