Fix bug where rotating the phone on the login screen restarts the activity