         self.textField.backgroundColor = Color.LoginTextView.TextField.background
         self.textField.layer.cornerRadius = 5
         self.layer.cornerRadius = 5
-        if let icon = self.icon {
-            self.textField.leftViewMode = UITextFieldViewMode.always
-            let imageView = UIImageView(frame: CGRect(x: 0, y: 0, width: 40, height: 16))
-            imageView.image = icon
-            imageView.contentMode = .scaleAspectFit
-            self.textField.leftView = imageView
-        }
 
         setupConstraints()
     }

    func textFieldDidEndEditing() {
        checkText()
    }
}


    var icon: UIImage? {
        didSet {
            addIconToTextField()
        }
    }
    var errorString: String?
