login before fetch

fixes https://github.com/scrapinghub/portia/issues/11