external login improved