             backgroundColor = UIColor.clear
             borderStyle = .none
         case .wrongFormat:
-            backgroundColor = UIColor.red.withAlphaComponent(0.4)
+            if (style != .readOnly){
+                backgroundColor = UIColor.red.withAlphaComponent(0.4)
+            }
 //            borderStyle = .roundedRect
 //            layer.borderColor = UIColor.red.cgColor
 //            layer.borderWidth = 1

        if (!state) {
            setStyle(.wrongFormat)
        } else {
            setStyle(_style)
        }
        return state
    }
    
    func isValidEmail() -> Bool {

    }
    
    var _style : Style = .dark
    var style : Style {
        get {
            return _style
        }
        set {
            _style = newValue
            setStyle(_style)
        }
    }
    
    public var shouldMoveUpOnBeginEdit : Bool = true
    
    public required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
