set error to the field specified in unlock_keys config

closes #2418