Move login prompt to doLogin & use * in read..