corrected a authorization glitch for creating a new pin