correct session creation and return value from Login Portal method