It shall be unlawful for any person, firm, or corporation to employ, detain, or permit to work in any mill, cannery, workshop, factory, or manufacturing establishment in this state any child under the age of fourteen (14) years, or any child over the age of fourteen (14) years and under the age of sixteen (16) years, unless such child has complied with, or is complying with, the compulsory school attendance law. Such employer shall require such child to present the affidavit of the parent or guardian, or person standing in parental relation to such child, and the certificate of the superintendent or principal of the school of the district in which such child or children reside or in which they last attended school, stating the place and date of the birth of such child, the last school attendance of such child, the grade of study pursued, the name of the school, and the name of the teacher in charge. The employer shall preserve such affidavit and keep a complete register of all such affidavits, showing all the facts contained herein.