fixing "login lag" issue