[PATCH 2/3] reg: Fail if access is denied when adding registry data