Use ':input' selector when removing errorCss

This fixes SELECT boxes staying red after a submitted field with error
gets fixed by the user.

Fixes #2368