Log in properly to Github API, if --login option is given.