         @state.set { classCodeValid: false, segmentCheckValid: false }
     .catch (error) ->
       throw error
-      
+
   onInputBirthday: ->
     { birthdayYear, birthdayMonth, birthdayDay } = forms.formToObject(@$('form'))
     birthday = new Date Date.UTC(birthdayYear, birthdayMonth - 1, birthdayDay)
     @signupState.set { birthdayYear, birthdayMonth, birthdayDay, birthday }, { silent: true }
     unless _.isNaN(birthday.getTime())
       forms.clearFormAlerts(@$el)
-    
+
   onSubmitSegmentCheck: (e) ->
     e.preventDefault()
-    
+
     if @signupState.get('path') is 'student'
       @$('.class-code-input').attr('disabled', true)
-    
+
       @fetchClassByCode(@getClassCode())
       .then (classroom) =>
         return if @destroyed

      @renderSelectors('.render')
      @trigger 'special-render'
    )
    
  getClassCode: -> @$('.class-code-input').val() or @signupState.get('classCode') 

  onInputClassCode: ->
    @classroom = new Classroom()

          @state.set { classCodeValid: false, segmentCheckValid: false }
      .catch (error) ->
        throw error

    else if @signupState.get('path') is 'individual'
      if _.isNaN(@signupState.get('birthday').getTime())
        forms.clearFormAlerts(@$el)
        requiredMessage = _.string.titleize $.i18n.t('common.required_field')
        forms.setErrorToProperty @$el, 'birthdayDay', requiredMessage
      else
        age = (new Date().getTime() - @signupState.get('birthday').getTime()) / 365.4 / 24 / 60 / 60 / 1000
        if age > 13
