Fixed failing downloads when login is required