public function isValid(array $attributes, $rules = 'rules')
    {
        //validator
        $validator = $this->factory->make($attributes, static::${$rules});

        //passes validation
        if (!$validator->fails()) {
            return true;
        }

        //set errors
        $this->errors = $validator->getMessageBag();

        //return
        return false;
    }