Avoiding the blinding attack in QKD