diff --git a/src/themes/d4science/login/messages/messages_en.properties b/src/themes/d4science/login/messages/messages_en.properties
index f6f4d6d..995fc9d 100644
--- a/src/themes/d4science/login/messages/messages_en.properties
+++ b/src/themes/d4science/login/messages/messages_en.properties
@@ -1,3 +1,5 @@
confirmLinkIdpReviewProfile=Review information for new profile
-termsAcceptMsg=You have to scroll down to read and then accept the terms
\ No newline at end of file
+termsAcceptMsg=You have to scroll down to read and then accept the terms
+
+usernameValidityMsg=Only letters, numbers and dots are permitted
\ No newline at end of file
diff --git a/src/themes/d4science/login/messages/messages_it.properties b/src/themes/d4science/login/messages/messages_it.properties
index 354af0e..5358c85 100644
--- a/src/themes/d4science/login/messages/messages_it.properties
+++ b/src/themes/d4science/login/messages/messages_it.properties
@@ -1 +1,3 @@
-confirmLinkIdpReviewProfile=Rivedi le informazioni del nuovo profilo
\ No newline at end of file
+confirmLinkIdpReviewProfile=Rivedi le informazioni del nuovo profilo
+
+usernameValidityMsg=Sono consentiti solo lettere, numeri e punti
\ No newline at end of file
diff --git a/src/themes/d4science/login/register.ftl b/src/themes/d4science/login/register.ftl
index 51eb46d..94ea318 100644
--- a/src/themes/d4science/login/register.ftl
+++ b/src/themes/d4science/login/register.ftl
@@ -37,8 +37,13 @@
-
+
+
#if>
diff --git a/src/themes/d4science/login/terms.ftl b/src/themes/d4science/login/terms.ftl
index 1c384a6..c6c5ccd 100644
--- a/src/themes/d4science/login/terms.ftl
+++ b/src/themes/d4science/login/terms.ftl
@@ -17,7 +17,7 @@
function checkKcTermsScrollHeight(){
var kcTermsTextElement = document.getElementById("kc-terms-text")
- if ((kcTermsTextElement.scrollTop + kcTermsTextElement.offsetHeight) >= kcTermsTextElement.scrollHeight){
+ if ((kcTermsTextElement.scrollTop + kcTermsTextElement.offsetHeight + 5) >= kcTermsTextElement.scrollHeight){
document.getElementById("kc-accept").disabled = false;
}
}