         data: @$form.serializeJSON()
       ).done((data) =>
         @$form.empty()
-        @$form.append "<div class='success'>#{@welcomeMessage()}<div>"
+        @$form.append "<div class='success'>#{@welcomeMessage(data)}<div>"
       ).fail((jqXHR) =>
         errors = JSON.parse(jqXHR.responseText).message
         @showErrors(errors)

  class SignupForm
    constructor: (@selector) ->
      @$form = $(@selector)
      @field('questions[]').getSelectOptions API_V1.SECURITY_QUESTIONS, (data) ->
        res = [{}]
        data.forEach (t) ->



    showErrors: (errors) ->
      @processTeacherErrors(errors) if @isTeacher()

      for fieldName, error of errors
        $f = @field(fieldName).parent()
        $f.addClass 'error-field'
        $f.prepend "<div class=\"error-message\">#{error}</div>"

    clearErrors: ->
      @$form.find('.error-field').removeClass 'error-field'
