How to change the background color of an input field when text is entered