Add error class to div, instead of the input itself

This tweaks the triggerValidationErrors function, and moves the error
class to the div, so we can do a little more with CSS.