Making sure that the LoginActivity keeps the state upon configuration changes