pass validation key as argument to validation function
clear out validation errors after revert record changes