logout when you go back