Fix HttpClient instance in authenticate after last refactor.

I think i may have found a bug but correct me if i'm wrong :-)