removed bug where logout operation crashed when user is already logged in and application got closed and re-opened