Frontend: added external login support.