All judgments given, and all acts executed or done by any person by authority or color of any office or post, or the deputation thereof, before his removal therefrom, shall be as valid as they would be if this chapter had not been enacted; but every contract or security made or obtained in violation of this chapter shall be void.
Va. Code § 2.2-2808