diff --git a/app/assets/javascripts/discourse/mixins/username-validation.js.es6 b/app/assets/javascripts/discourse/mixins/username-validation.js.es6 index 515d32c3131..b67fa857acc 100644 --- a/app/assets/javascripts/discourse/mixins/username-validation.js.es6 +++ b/app/assets/javascripts/discourse/mixins/username-validation.js.es6 @@ -25,7 +25,7 @@ export default Ember.Mixin.create({ this.set('uniqueUsernameValidation', null); - if (accountUsername === this.get('prefilledUsername')) { + if (accountUsername && accountUsername === this.get('prefilledUsername')) { return InputValidation.create({ ok: true, reason: I18n.t('user.username.prefilled') diff --git a/app/assets/javascripts/discourse/templates/modal/create-account.hbs b/app/assets/javascripts/discourse/templates/modal/create-account.hbs index c32fe8e3c1e..9efde75e557 100644 --- a/app/assets/javascripts/discourse/templates/modal/create-account.hbs +++ b/app/assets/javascripts/discourse/templates/modal/create-account.hbs @@ -11,14 +11,14 @@
- + - +