worked on loginWithCookieData