Take control of back button to prevent switching between login/signup screen and main activity