 
     private func updateValid(valid: Bool) {
         if valid {
+            self.rightView = self.inputValidationIndicator
             self.layer.backgroundColor = self.validBackgroundColor.CGColor
             self.layer.borderColor = self.validBorderColor.CGColor
             self.textColor = self.validTextColor
         } else {
+            self.rightView = self.customClearButton
             self.layer.backgroundColor = self.invalidBackgroundColor.CGColor
             self.layer.borderColor = self.invalidBorderColor.CGColor
             self.textColor = self.invalidTextColor


extension FormTextField {
    public func textFieldDidBeginEditing(textField: UITextField) {
        self.rightView = self.customClearButton

        self.updateActive(true)
    }

    public var formatter: Formattable?
    weak public var textFieldDelegate: FormTextFieldDelegate?

    static private let AccessoryButtonWidth = 30.0
    static private let AccessoryButtonHeight = 20.0

