       track 'submitted register form'
       checkUsername = yes
 
-
     { username } = formData
 
     teamData = utils.getTeamData()
     { slug } = teamData.domain
+
     if username is slug
+      @form.emit 'FormSubmitFailed'
       return new kd.NotificationView title : "Sorry, your group domain and your username can not be the same!"
 
     success = =>

          { protocol, host } = location
          location.href      = "#{protocol}//#{slug}.#{host}/-/confirm?token=#{data.token}"
        error : ({responseText}) =>
          @form.emit 'FailedToCreateATeam'

          if /TwoFactor/.test responseText
            track 'requires two-factor authentication'

        error   : ({responseJSON}) =>
          track 'entered an invalid username'

          @form.emit 'FormSubmitFailed'

          unless responseJSON
            return new kd.NotificationView
              title: 'Something went wrong'
