fixing AddExternalLogin logic