     // The view and it's image used to show validation indicators
     private var rightView: UIView!
     private var rightImageView: UIImageView!
+
+    // Minimum length for password field, default value 6
+    private var minimumPasswordLength: Int = 6
     
     /* Inspectable variable to set validation mode (See ValidationMode Enum)
      0 = Name , Surname

        case .email:
            return isValidEmail(email: text)
        case .password:
            return text.characters.count >= 6
        case .confirmPassword:
            return passToConfirm != nil && passToConfirm == text
            }

    @IBInspectable var invalidBgColor: UIColor = UIColor.red
    @IBInspectable var invalidTextColor: UIColor = UIColor.red
    @IBInspectable var invalidImage: UIImage? = UIImage(named: "PRGVFInvalid")

    // Minimum length for password field
    @IBInspectable var passwordMinLength: Int = 6 {
        didSet {
            minimumPasswordLength = passwordMinLength
        }
    }
    
    // getter for textfield's text
    public var text: String? {
