 		return true
 	}
 
+	func textField(textField: UITextField, shouldChangeCharactersInRange range: NSRange, replacementString string: String) -> Bool {
+		if textField == passwordTextField && textField.text == "" {
+			passwordTextField.enableClearIconButton = false
+			passwordTextField.enableVisibilityIconButton = true
+		}
+		return true
+	}
+
 }

				dispatch_async(dispatch_get_main_queue()) {
					self.passwordTextField.text = password
					self.passwordTextField.secureTextEntry = true
					self.passwordTextField.enableVisibilityIconButton = false
				}
			} else {


		passwordTextField = TextField()
		passwordTextField.placeholder = "Password"
		passwordTextField.text = ChinachuAPI.password
		passwordTextField.secureTextEntry = true
		passwordTextField.enableClearIconButton = true
		passwordTextField.placeholderActiveColor = MaterialColor.blue.base
		passwordTextField.returnKeyType = .Done
		passwordTextField.delegate = self
		passwordTextField.inputAccessoryView = inputAccesoryToolBar
