All written agreements entered into prior to the enactment of this chapter between prospective spouses for the purpose affecting any of the subjects specified in § 20-150 shall be valid and enforceable if otherwise valid as contracts.
Va. Code § 20-154