Fixed bug for pin verification