Change class of input field