     func postMailboxSettings() {
         var mailboxSettings = self.mailboxSettings
         mailboxSettings.updateValue(self.emails as AnyObject, forKey: "emailAddress")
+        mailboxSettings.updateValue(self.mobilePhoneNumber as AnyObject, forKey: "mobilePhoneNumber")
         
         if let rootResource: POSRootResource =
             POSRootResource.existingRootResource(in: POSModelManager.shared().managedObjectContext) {
             if let mailboxSettingsUri = rootResource.mailboxSettingsUri {
-                APIClient.sharedClient.updateMailboxSettings(uri: mailboxSettingsUri,mailboxSettings: mailboxSettings as! Dictionary<String, AnyObject>,success: {() -> Void in
+                APIClient.sharedClient.updateMailboxSettings(uri: mailboxSettingsUri,mailboxSettings: mailboxSettings ,success: {() -> Void in
                     self.getMailboxSettings()
                 }, failure: ({_ in }))
             }

                }
            }
            
            if let mobilePhoneNumber = mailboxSettings["mobilePhoneNumber"] {
                self.phonenumber?.text = mobilePhoneNumber["phoneNumber"] as? String
                self.countryCode?.text = mobilePhoneNumber["countryCode"] as? String
            }
        }
    }
    

        var email = emails[index]
        email["email"] = emailAddress
        emails[index] = email
    }
    
    @IBAction func changedValue(_ sender: UITextField) {
