Add a login method to the proxyclient and fix retrieving the cookies from the right source