support for loginPortal method