added a flag so that the notification for logout does not show the first time the app is started, added a normal method to the notify object