can this conditions be added to validate? something like
```validate :validate_ldap_filter, :if => Proc.new { |source| source.ldap_filter.present? }```