 
 		passwordTextField = TextField()
 		passwordTextField.placeholder = "Password"
-		passwordTextField.enableVisibilityIconButton = true
+		passwordTextField.text = ChinachuAPI.password
+		passwordTextField.secureTextEntry = true
+		passwordTextField.enableClearIconButton = true
 		passwordTextField.placeholderActiveColor = MaterialColor.blue.base
-		passwordTextField.visibilityIconButton?.tintColor = MaterialColor.blue.base.colorWithAlphaComponent(passwordTextField.secureTextEntry ? 0.38 : 0.54)
 		passwordTextField.returnKeyType = .Done
 		passwordTextField.delegate = self
 		passwordTextField.inputAccessoryView = inputAccesoryToolBar

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

		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
	}

}
