Adds observable that returns the configured errorElementClass when the observable has been modified and failed validation, with associated tests