textinput: added warning class where necessary