diff --git a/app/templates/auth/register.html.j2 b/app/templates/auth/register.html.j2
index 19dbcd57..24d54d9d 100644
--- a/app/templates/auth/register.html.j2
+++ b/app/templates/auth/register.html.j2
@@ -13,7 +13,7 @@
{{ form.hidden_tag() }}
person
- {{ form.username(class='validate') }}
+ {{ form.username(class='validate', data_length='64') }}
{{ form.username.label }}
{% for error in form.username.errors %}
{{ error }}
@@ -37,7 +37,7 @@
email
- {{ form.email(class='validate', type='email') }}
+ {{ form.email(class='validate', data_length='254', type='email') }}
{{ form.email.label }}
{% for error in form.email.errors %}
{{ error }}
diff --git a/app/templates/base.html.j2 b/app/templates/base.html.j2
index 06e4a961..307a486b 100644
--- a/app/templates/base.html.j2
+++ b/app/templates/base.html.j2
@@ -182,7 +182,7 @@