work on validation classes for new error-code structure