Level 4: Log out implemented when back button is pressed or logout option is pressed in the menu in QuestListActivity. Then, onResume in MainActivity logs out the user.