public function error($field, $all = false)
    {
        if (!empty($this->_errors[$field])) {
            return $all ? $this->_errors[$field] : reset($this->_errors[$field]);
        }
        return '';
    }