Identity verification in quantum key distribution