<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def validate(self, value):
 """ This was overridden to have our own ``empty_values``. """

        if value in self.empty_values and self.required:
            raise ValidationError(self.error_messages['required'])