Update notLogged middleware