         
         // for debug of error
         if self.errorOn == true {
-            showError()
+            showError(self.errorText)
         } else {
             hideError()
         }

    public func showError(_ errorText : String) {
        
        self.errorText = errorText
        showError()
    }
    
    public func showError() {
        
        if errorLabel == nil {
            errorLabel = UILabel()

    
    var shouldSetupConstraints = true

    internal var errorText: String! = "Please supply a valid value"
    internal let totalWidth : CGFloat = 375
    internal let totalHeight : CGFloat = 40
    internal let leftMargin : CGFloat = 16
