src/UserBase.php
public function addValidation($name, $limit = '0-1', $regEx = false)
    {
        $this->log->channel('validation');
        if (is_array($name)) {
            $this->_validations->update($name);
            $this->log->report('New Validation Object added');
        } else {
            $this->_validations->$name = array(
                'limit' => $limit,
                'regEx' => $regEx,
            );
            $this->log->report("The $name field has been added for validation");
        }
    }
public function addValidation($name, $limit = '0-1', $regEx = false)
    {
        $this->log->channel('validation');
        if (is_array($name)) {
            $this->_validations->update($name);
            $this->log->report('New Validation Object added');
        } else {
            $this->_validations->$name = array(
                'limit' => $limit,
                'regEx' => $regEx,
            );
            $this->log->report("The $name field has been added for validation");
        }
    }
Adds validation to queue for either the Registration or Update Method
Single Entry:
Requires the first two parameters
$name  = string (name of the field to be validated)
$limit = string (range of the accepted value length in the format of "5-10")
- to make a field optional start with 0 (Ex. "0-10")
Optional third parameter
$regEx = string (Regular Expression to test the field)
_____________________________________________________________________________________________________
Multiple Entry:

Takes only the first argument
$name = Array Object (takes an object in the following format:
array(
"Username" => array(
"limit" => "3-15",
"regEx" => "/^([a-zA-Z0-9_])+$/"
),
"Password" => array(
"limit" => "3-15",
"regEx" => false
)
);

@access public
@api

@param string|array $name  Name of the field to validate or an array of all the fields and their validations
@param string       $limit A range of the accepted value length in the format of "5-10", to make a field optional
start with 0 (Ex. "0-10")
@param string|bool  $regEx Regular expression to the test the field with

@return null