Modified HTTP client constructor to allow log in on construction and retrieve account info immediately if login is successful.