Modified isLogged method from User Test