Switching to the new identity when it is created.