Fixing bugs around missing configuration, http errors and only doing login if there are files to upload