adding message codes for validation report page

Hi wyclif,

Please see if this PR is correct.
- ishara