Added template for new documents and fixed sessions security.