 
 
     showErrors: (errors) ->
-      @processTeacherErrors(errors) if @teacher
+      @processTeacherErrors(errors) if @isTeacher()
 
       for fieldName, error of errors
         $f = @field(fieldName).parent()
         $f.addClass 'error-field'
-        $f.prepend "<p class=\"error-message\">#{error}</p>"
+        $f.prepend "<div class=\"error-message\">#{error}</div>"
 
     clearErrors: ->
       @$form.find('.error-field').removeClass 'error-field'

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

        return unless @validateBasicFields()
        @el('#common-fieldset').addClass 'hidden'

        if @el('#student_account').is(':checked')
          @el('#student-fieldset').removeClass 'hidden'
          @accountType = 'student'
        else
          @el('#teacher-fieldset').removeClass 'hidden'
          @accountType = 'teacher'

      @el('.submit-form').on 'click', (e) =>
        e.preventDefault()
