Improving security of quantum identity authentication based on ping-pong technique for photons