def clean_password(self):
        l = len(self.cleaned_data['password'])
        if l <= 5 or l >= 30:
            raise ValidationError(
                _('Неверная длина пароля.'))
        return self.cleaned_data['password']