How to sign a submitted document