removed on_register callback. on_identity_change does the same