Implement error checks in grant/revoke.