trying to make login/logout work