Adds access to the record in the validator.
Merge branch 'record-access'
Small refactor and code style.