NFR #1171 Adding validation message code

At the very best case, this should add a class variable _code, setter, getter and not break everything.