Fixed another spot where a referrer was only validated after downloading from database and not uploading to database.