More fixes on member login/logout.