registerIdentity renamed to registerDevice