Renamed registerIdentity to registerDevice

Renamed registerIdentity to registerDevice