public function required($value)
    {

        if(!$this->hasMessage('required')){
            $this->addMessage('required', 'This value is required');
        }

        if (is_null($value) || $value == '') {
            return false;
        }

        return true;
    }