Make login/logout work