After you finish preparing your legal template, you and the other parties should sign it. Your signatures prove that all parties agree to and approve the document, which makes it valid.
The signature format can be both manual or electronic.