No such assignment of, or order for, wages or salary to be earned in the future, to secure a loan, shall be valid, when made by a married man, unless the written consent of his wife to the making of such assignment or order is attached thereto before any such assignment or order is accepted, in writing, by the employer, as provided in the first section of this act.
43 P.S. § 274