add ldap validation

added ldap validation on the server side

Issue #54