Rename some ValidationError attributes
Refactor ValidationError creation and attribute setting