better LoginTask construction