A discharge in bankruptcy shall be a valid defense to any suit brought upon a wage assignment executed by the bankrupt prior to the adjudication in bankruptcy; no assignment of wages shall be valid after three years from the date of its execution and shall be void after such period of three years.
740 ILCS 170/5