monkeypatch login