added a check function on edd_check_download