Store errors as a data-attribute on inputs.