Intercept validation errors to stop errors and add class.

Could do with a nice invalid style at some point though