diff --git a/client/html/user_edit.hbs b/client/html/user_edit.hbs
index 0dd28ca..5967b88 100644
--- a/client/html/user_edit.hbs
+++ b/client/html/user_edit.hbs
@@ -5,13 +5,13 @@
{{#if this.canEditName}}
-
- {{textInput text='User name' id='user-name' name='name' value=this.user.name}}
+ {{textInput text='User name' id='user-name' name='name' value=this.user.name pattern=this.userNamePattern}}
{{/if}}
{{#if this.canEditPassword}}
-
- {{passwordInput text='Password' id='user-password' name='password' placeholder='leave blank if not changing'}}
+ {{passwordInput text='Password' id='user-password' name='password' placeholder='leave blank if not changing' pattern=this.passwordPattern}}
{{/if}}