implemented external login using pop-up window