OnDeviceReady event checks for login.