An assignment of wages to become due shall not be valid against a levy upon such wages under this chapter unless executed in writing prior to the date of the levy and made to secure a debt of an amount therein stated, contracted prior to or simultaneous with the execution of the assignment.