2FA, Refactored logging into GitHub (fixes #244)