new pin entering logic