make login/logout work locally