does not printing progressbar twice and add InvalidAuthentication error