tried to simplify login/logout