added debug logging to isPresignedUrlValid so we stand a chance of diagnosing problems