Section 20. The following shall not be required to file registration statements with the division or to have a certificate of registration under section nineteen: (1) any religious corporation, trust, foundation, association or organization incorporated or established for religious purposes, nor any agency or organization incorporated or established for charitable, purposes and engaged in effectuating one or more of such purposes, which is affiliated with, operated by, or supervised or controlled by a corporation sole or other religious corporation, trust, foundation, association, or organization incorporated or established for religious purposes, nor any other religious agency or organization which serves religion by the preservation of religious rights and freedom from persecution or prejudice or by fostering religion, including the moral and ethical aspects of a particular religious faith; (2) charitable organizations which do not actually raise or receive contributions from the public in excess of five thousand dollars during a calendar year or do not receive contributions from more than ten persons during a calendar year, if all of their functions, including fund-raising activities, are carried on by persons who are unpaid for their services and if no part of their assets or income inures to the benefit of, or is paid to any officer or member; provided, however, that if the contributions raised from the public, whether or not all is received by any charitable organization during any calendar year, is in excess of five thousand dollars, it shall within thirty days after the date it shall have received total contributions in excess of five thousand dollars, register with and report to the division as required by section nineteen.