Minor tweaks: Add 'AtemptedValue' field to ValidationErrorResult

A small improvement for validation: remember attempted value in ValidationErrorResult; remove a bit of unused code.