     @buildViews()
     @createFooter()
     return @show()
+
+
+  verifyAccount: ->
+
+    code = Encoder.XSSEncode @codeEntryView.getValue()
+    unless code then return new KDNotificationView
+      title: "Please enter a code"
+
+    KD.remote.api.JUser.verifyByPin pin: code, (err)=>
+
+      @pinIsValid?.destroy()
+
+      if err
+        @container.addSubView @pinIsValid = new KDCustomHTMLView
+          cssClass : 'error-message'
+          partial  : """
+            <p>The pin entered is not valid.</p>
+          """
+
+      else
+        KD.utils.defer @bound 'buildInitial'

          info "Initial info result:", response

          @buildViews response

          if response.State is NotInitialized
            KD.utils.defer => @turnOnMachine()

        .catch (err)=>



    @container.destroySubViews()

    @codeEntryView = new KDHitEnterInputView
      type         : 'text'
      cssClass     : 'verify-pin-input'
      placeholder  : 'Enter code here'
      callback     : @bound 'verifyAccount'

    @button    = new KDButtonView
      title    : 'Verify account'
      cssClass : 'solid green medium'
      callback : @bound 'verifyAccount'

    @container.addSubView new KDCustomHTMLView
      cssClass : 'verify-message'
