For the agreement to be legally enforceable, it must be filed and validated by the court, especially if it is part of divorce proceedings.