           name             : "confirmPassword"
           type             : "password"
           label            : 'Password (again)'
+        shareLocation      :
+          label            : 'Share my location while posting'
+          defaultValue     : whoami().shareLocation
+          itemClass        : KodingSwitch
+          cssClass         : 'tiny'
+          name             : 'shareLocation'
       buttons              :
         Save               :
           title            : 'Save Changes'

      title          : 'Use Gravatar'
      callback       : =>
        @account.modify "profile.avatar": ""

    @emailForm = new KDFormViewWithFields
      cssClass             : 'AppModal-form'

  update: (formData) ->

    {JUser} = remote.api
    {email, password, confirmPassword, firstName, lastName, username, shareLocation} = formData
    
    console.log shareLocation
    
    profileUpdated = yes
    skipPasswordConfirmation = no
    queue = [
      =>
        # update firstname and lastname
        me = whoami()
        console.log me

        me.modify {
          "profile.firstName": firstName,
          "profile.lastName" : lastName
          "shareLocation"    : formData.shareLocation
        }, (err)->
          return notify err.message  if err
          queue.next()
