changing registering logic if first login (creates a new badge,but
device is not yet registered to send message!)