diff --git a/adminstuds.php b/adminstuds.php
index a26bbd225ebc827b5897344892e8128c9114967a..0ce296103e3fd81628130cc3e181975f816e85d8 100644
--- a/adminstuds.php
+++ b/adminstuds.php
@@ -373,5 +373,6 @@ $smarty->assign('comments', $comments);
 $smarty->assign('editingVoteId', $editingVoteId);
 $smarty->assign('message', $message);
 $smarty->assign('admin', true);
+$smarty->assign('parameter_name_regex', NAME_REGEX);
 
 $smarty->display('studs.tpl');
\ No newline at end of file
diff --git a/js/app/studs.js b/js/app/studs.js
new file mode 100644
index 0000000000000000000000000000000000000000..a41f1564895b74a428c6db1023d087655e591df1
--- /dev/null
+++ b/js/app/studs.js
@@ -0,0 +1,19 @@
+$(document).ready(function() {
+
+    $("#poll_form").submit(function( event ) {
+        var name = $("#name").val();
+        var regexContent = $("#parameter_name_regex").text().split("/");
+        var regex = new RegExp(regexContent[1], regexContent[2]);
+        if (name.length == 0 || !regex.test(name)) {
+            event.preventDefault();
+            var newMessage =  $("#nameErrorMessage").clone();
+            $("#message-container").empty();
+            $("#message-container").append(newMessage);
+            newMessage.removeClass("hidden");
+            $('html, body').animate({
+                scrollTop: $("#message-container").offset().top
+            }, 750);
+        }
+    });
+
+});
\ No newline at end of file
diff --git a/studs.php b/studs.php
index 281fdc971fa81c022b0300b5d73799cae0d528fc..461d86d92c310233014c0e5a2792179865d9aac3 100644
--- a/studs.php
+++ b/studs.php
@@ -202,5 +202,6 @@ $smarty->assign('comments', $comments);
 $smarty->assign('editingVoteId', $editingVoteId);
 $smarty->assign('message', $message);
 $smarty->assign('admin', false);
+$smarty->assign('parameter_name_regex', NAME_REGEX);
 
 $smarty->display('studs.tpl');
diff --git a/tpl/head.tpl b/tpl/head.tpl
index 3b8bbaca4540e1d319ab28c4232d46fe8dbab236..401a271aa6dce76882b46b654bfca673741233eb 100644
--- a/tpl/head.tpl
+++ b/tpl/head.tpl
@@ -24,6 +24,8 @@
             <script src="{'nav/nav.js'|resource}" id="nav_js" type="text/javascript" charset="utf-8"></script><!-- /Framanav -->
         {/if}
 
+        {block name="header"}{/block}
+
     </head>
     <body>
     <div class="container ombre">
\ No newline at end of file
diff --git a/tpl/part/vote_table_classic.tpl b/tpl/part/vote_table_classic.tpl
index e36559d3083f61d80301fc681b0a40e49c4f1353..ab0a6524552a660fdbe968ede2d7e7340748178f 100644
--- a/tpl/part/vote_table_classic.tpl
+++ b/tpl/part/vote_table_classic.tpl
@@ -5,7 +5,7 @@
 <h3>{__('Poll results\\Votes of the poll')}</h3>
 
 <div id="tableContainer" class="tableContainer">
-    <form action="" method="POST">
+    <form action="" method="POST"  id="poll_form">
         <table class="results">
             <caption class="sr-only">{__('Poll results\\Votes of the poll')} {$poll->title|html}</caption>
             <thead>
diff --git a/tpl/part/vote_table_date.tpl b/tpl/part/vote_table_date.tpl
index ab00563c9ba7ad53d30768995bb8d8de75ff8be1..2e8416dd85855b51843c22b6431b27c5ebeba862 100644
--- a/tpl/part/vote_table_date.tpl
+++ b/tpl/part/vote_table_date.tpl
@@ -5,7 +5,7 @@
 <h3>{__('Poll results\\Votes of the poll')}</h3>
 
 <div id="tableContainer" class="tableContainer">
-    <form action="" method="POST">
+    <form action="" method="POST" id="poll_form">
         <table class="results">
             <caption class="sr-only">{__('Poll results\\Votes of the poll')} {$poll->title|html}</caption>
             <thead>
diff --git a/tpl/studs.tpl b/tpl/studs.tpl
index 9f9613e59192352585c635a11de5b1415ecb9498..2c9b381939cb703e4a5560bdb79f4a60df237c7a 100644
--- a/tpl/studs.tpl
+++ b/tpl/studs.tpl
@@ -1,12 +1,21 @@
 {extends file='page.tpl'}
 
+{block name="header"}
+    <script src="{"js/app/studs.js"|resource}" type="text/javascript"></script>
+{/block}
+
 {block name=main}
 
-    {if !empty($message)}
-        <div class="alert alert-dismissible alert-{$message->type|html}" role="alert">{$message->message|html}<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button></div>
-    {/if}
 
-{* Global informations about the current poll *}
+    <div id="message-container">
+        {if !empty($message)}
+            <div class="alert alert-dismissible alert-{$message->type|html}" role="alert">{$message->message|html}<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button></div>
+        {/if}
+    </div>
+    <div id="nameErrorMessage" class="hidden alert alert-dismissible alert-danger" role="alert">{__('PollInfo\\The name is invalid.')}<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button></div>
+
+
+    {* Global informations about the current poll *}
 
 {include 'part/poll_info.tpl' admin=$admin}
 
@@ -37,6 +46,11 @@
     </div>
 </div>
 
+<div class="hidden">
+    <p id="parameter_name_regex">{$parameter_name_regex}</p>
+</div>
+
+
 {* Vote table *}
 
 {if $poll->format === 'D'}