Add (optional) callback to the register event