Adds LDAP DN validation and user errors.