A shortcut to performing validation on input data. If validation
is not successful, a $errors property will be set on this class.

@param array|string $rules
@param array        $messages An array of custom error messages

@return boolean