check whether or not the input matches the text given.

simple css styling to the input field based on match being truthy or falsy