Updated the back button

Update prevents user from going to login screen without logging out.
Also prevents user from going to the main menu after having logged out.