Fixed unbalanced calls and logout errors.

Users can no longer corrupt the nav bar by logging out from the
inactive game screen. Moreover, pressing the logout button actually
logs users out now.