handling login calls & unified logging