Correct handling of login fragments