Add red outlines to form elements when invalid.

* Remove the outline as soon as the user changes the value of the field.

fixes #435