Fixed onLogIn behaviour bug