Section 2. No assignment of or order for wages or salary to be earned in the future to secure a loan of less than three thousand dollars shall be valid against an employer of the person making such assignment or order until the assignment or order is accepted in writing by the employer, nor until the assignment or order and the acceptance of the same have been filed and recorded with the clerk of the city or town where the person making the assignment or order resides if he is a resident of the commonwealth, or in which he is employed if he is not a resident thereof; nor shall it be valid unless said assignment is substantially in the form prescribed in section five. No such assignment or order shall be recorded by the clerk of a city or town unless it states on its face that the sum of ten dollars per week, as earned, of the wages or salary so assigned is exempt from such assignment or order. No such assignment or order shall be valid when made by a married man unless the written consent of his wife to the making thereof is attached thereto. No such assignment or order shall be valid for a period exceeding one year from the making thereof. The fee for the filing and recording of such assignment shall be as provided by clause (2) of section thirty-four of chapter two hundred and sixty-two.