How can I dynamically change input background color?