clean up prompt for credentials
exit err if we do not get a login token