Improved HttpClient and test of Login