added optional display error message for failed ldap login