Signing documents with electronic signatures