Fixed navigation of activities on logout