A part of external Login