 
     static private let AccessoryButtonWidth = 30.0
     static private let AccessoryButtonHeight = 20.0
+    dynamic public var accessoryViewMode : UITextFieldViewMode = .WhileEditing { didSet { self.rightViewMode = self.accessoryViewMode } }
+    dynamic public var accessoryButtonColor: UIColor = UIColor(red: 0, green: 122/255, blue: 1, alpha: 1)
+    public var accessoryView: UIView?
+
+    private(set) public var valid: Bool = true
 
     override public init(frame: CGRect) {
         super.init(frame: frame)

        return button
    }()

    public var accessoryView: UIView?

    override public var enabled: Bool {
        didSet {
            self.updateEnabled(self.enabled)
        }
    }

    private(set) public var valid: Bool = true

    public var inputType: FormTextFieldInputType = .Default {
        didSet {

        self.backgroundColor = UIColor.clearColor()
    }

    private lazy var clearButton: UIButton = {
        let image = FormTextFieldClearButton.imageForSize(CGSize(width: 18, height: 18), color: self.accessoryButtonColor)
        let button = UIButton(type: .Custom)
        button.setImage(image, forState: .Normal)
