Remove screen flicker when checking login status