diff --git a/src/components/registration/steps.jsx b/src/components/registration/steps.jsx index f8160079e..45e3064d9 100644 --- a/src/components/registration/steps.jsx +++ b/src/components/registration/steps.jsx @@ -91,7 +91,7 @@ module.exports = { }, validateUsername: function (username, callback) { callback = callback || function () {}; - if (username.length < 1) { + if (!username) { this.refs.form.refs.formsy.updateInputsWithError({ 'user.username': formatMessage({id: 'teacherRegistration.validationRequired'}) });