working programmatic login now but too much workaround because of the
loginContext. TODO