Fixed so login doesnt fail when ldap server doesnt work well