fixed bug while trying to login after installing LoginLdap