diff --git a/src/CustomForm.php b/src/CustomForm.php
index 5ef1113..10cf400 100644
--- a/src/CustomForm.php
+++ b/src/CustomForm.php
@@ -99,6 +99,7 @@ function CustomForm()
// Do we need to submit this form?
if (isset($_GET['submit']))
{
+ checkSession();
$vars = array();
$replace = array();
$i = -1;
diff --git a/src/CustomForm.template.php b/src/CustomForm.template.php
index 747f241..249f5cc 100644
--- a/src/CustomForm.template.php
+++ b/src/CustomForm.template.php
@@ -109,7 +109,7 @@ function form_template_submit_form()
-
+
';
}